package com.ow.dva.module.version.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.ow.dva.module.base.entity.base.BaseEntity;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 版本更新（路侧App）
 * </p>
 *
 * @author YanZengBao
 * @since 2020-04-20
 * @version V1.0
 */
@TableName("dva_version")
@ApiModel(value="Version对象", description="版本更新（路侧App）")
public class Version extends BaseEntity{

    private static final long serialVersionUID = 1L;

    private String id;

    @ApiModelProperty(value = "版本编号")
    private String code;

    @ApiModelProperty(value = "版本名称")
    private String name;

    @ApiModelProperty(value = "更新文件路径")
    private String url;

    @ApiModelProperty(value = "版本内容")
    private String content;

    @ApiModelProperty(value = "更新时间")
    private Date createTime;

    @ApiModelProperty(value = "1-路测App")
    private Integer type;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }
    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "Version{" +
            "id=" + id +
            ", code=" + code +
            ", name=" + name +
            ", url=" + url +
            ", content=" + content +
            ", createTime=" + createTime +
            ", type=" + type +
        "}";
    }
}
